Conversation
When a step specifies an `agent` field (e.g., `agent: general-purpose`), the generated skill will include `context: fork` and `agent: <value>`. This enables steps to delegate execution to specific agent types. Changes: - Add `agent` field to Step class in parser.py - Add `agent` to job schema validation in job_schema.py - Pass agent to template context in generator.py - Update Claude skill template to emit context: fork when agent is set - Update job.yml.template with agent option comment - Update job_spec.md doc spec with Agent Delegation section - Update define.md step instructions with agent delegation guidance https://claude.ai/code/session_01GaqLCGFqkvUsvpqUVqB9G9
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Agent Delegation: Adds support for delegating steps to specific agent types via a new
agentfield in job specs. When set, the generated skill automatically includescontext: forkto execute in a forked context.Key Changes
Agent Support in Job Schema: Added
agentfield to step definitions injob_schema.pyandparser.py. When specified, the skill generator automatically setscontext: fork.Updated Templates and Specs:
job.yml.templateto show agent field usageskill-job-step.md.jinja) to emitcontext: forkandagentfieldsSimplified Sync Instructions: Removed instructions to "relay reload instructions" from
deepwork syncoutput in implement and learn steps, as this is now handled by the platform automatically.https://claude.ai/code/session_01GaqLCGFqkvUsvpqUVqB9G9